﻿<?php
    header("Content-type: text/xml\n\n");
	
  //$xmin=$_GET['xmin'];
  //$xmax=$_GET['xmax'];
  //$ymin=$_GET['ymin'];
  //$ymax=$_GET['ymax'];
  //$conceptKeyword=$_GET['conceptKeyword'];
  //$networkIDs=$_GET['networkIDs'];
	//$beginDate=$_GET['beginDate'];
	//$endDate=$_GET['endDate'];
  
  $query = $_SERVER['QUERY_STRING'];
	
  
	$catalogsite = "http://hiscentral.cuahsi.org/webservices/hiscentral.asmx/GetSeriesCatalogForBox2?";
  
  $url = $catalogsite . $query;
  
  $curl = curl_init();
  curl_setopt($curl, CURLOPT_URL, $url);
  curl_setopt($curl, CURLOPT_HEADER, false);
  curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
  
  $xml = curl_exec($curl);
  
  curl_close($curl);
  
  echo($xml);
  
 
  
  
	//$client = new SoapClient($catalogsite);
	//$arr = (array) null;

	
	//$param = array('xmin'=>$xmin, 
  //        'xmax'=>$xmax,
	//				'ymin'=>$ymin, 
  //        'ymax'=>$ymax,
  //        'conceptKeyword'=>$conceptKeyword,
  //        'networkIDs'=>$networkIDs,
	//				'beginDate'=>$beginDate, 
	//				'endDate'=>$endDate);
	

	//$result = $client->GetSeriesCatalogForBox2($param);
	//$getValuesResult = $result->GetValuesResult;

	//echo($getValuesResult);
?>
